package com.ztjy.repository.biz;

import com.github.pagehelper.PageInfo;
import com.ztjy.bean.Warehouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseBiz {
    /**
     * 模糊查询仓库管理
     * @param warehouse 仓库名字 负责人id  省份 城市(根据登录的用户id来显示仓库管理或者仓库浏览),pageNo,pageSize
     * @return
     */
    public PageInfo<Warehouse> findAllRep(Warehouse warehouse, Integer pageNo, Integer pageSize);

    public List<Warehouse> findAllWarehouse(Warehouse warehouse);

    /**
     * 通过id查找仓库详情
     * @param rid 仓库id
     * @return
     */
    public Warehouse findRepById(Integer rid);

    /**
     * 添加仓库
     * @param warehouse
     * @return
     */
    public Boolean addWare(Warehouse warehouse);

    /**
     * 修改仓库
     * @param warehouse
     * @return
     */
    public Boolean updateWare(Warehouse warehouse);
}
